// @Bind #Tabs.onReady
!function(self, arg) {
operationUid = '${request.getParameter("operationUid")}';
var dsOperation = view.id("dsOperation");
dsOperation.set("parameter", {operationUid: operationUid});
dsOperation.flush();

}

// @Bind #dpConsumedUom.beforeExecute
!function(self,arg,dsTypesData) {
dsTypesData.set("parameter", {typeName:"uom"});
dsTypesData.flush();
}

// @Bind #dpConsumedUom.onValueSelect
!function(self,arg,dsTypesData,dsOperationPart) {
var operationPart = dsOperationPart.getData('#');
var typesData = dsTypesData.getData('#');

operationPart.set("consumedQuantityUom",typesData.get("typeId"));

operationPart.set("consumedQuantityUomDesc",typesData.get("idDescription"));

}

// @Bind #dpConsumedType.onValueSelect
!function(self,arg,dsTypesData,dsOperationPart) {
var operationPart = dsOperationPart.getData('#');
var typesData = dsTypesData.getData('#');

operationPart.set("consumedType",typesData.get("typeId"));

operationPart.set("consumedTypeDesc",typesData.get("idDescription"));

}

// @Bind #dpConsumedType.beforeExecute
!function(self,arg,dsTypesData) {
dsTypesData.set("parameter", {typeName:"consumedType"});
dsTypesData.flush();
}

// @Bind #dpProducedUom.beforeExecute
!function(self,arg,dsTypesData) {
dsTypesData.set("parameter", {typeName:"uom"});
dsTypesData.flush();
}

// @Bind #dpProducedUom.onValueSelect
!function(self,arg,dsTypesData,dsOperationPart) {
var operationPart = dsOperationPart.getData('#');
var typesData = dsTypesData.getData('#');

operationPart.set("producedQuantityUom",typesData.get("typeId"));

operationPart.set("producedQuantityUomDesc",typesData.get("idDescription"));

}

// @Bind #dpCheckType.beforeExecute
!function(self,arg,dsTypesData) {
dsTypesData.set("parameter", {typeName:"pmitype"});
dsTypesData.flush();
}

// @Bind #dpCheckType.onValueSelect
!function(self,arg,dsTypesData,dsOperationMeasurement) {
var operationMeasurement = dsOperationMeasurement.getData('#');
var typesData = dsTypesData.getData('#');

operationMeasurement.set("measurementType",typesData.get("typeId"));

operationMeasurement.set("measurementTypeDesc",typesData.get("idDescription"));

}

